
#ifndef _BSP_FLASH_H
#define _BSP_FLASH_H

#ifdef __cplusplus
extern "C" {
#endif

#define FLASH_PROGRAM_ADDRESS_START             0xFE00
#define FLASH_PROGRAM_ADDRESS_END               0x10000

#define FLASH_PROGRAM_DATA_BYTE                 0xAAull
#define FLASH_PROGRAM_DATA_HALFWORD             0xAA55ull
#define FLASH_PROGRAM_DATA_WORD                 0xAA559966ull
#define FLASH_PROGRAM_DATA_DOUBLEWORD           0xAA55996688776699ull

#ifdef __cplusplus
}
#endif
void bsp_flash_init(void);
void bsp_flash_erase(void);
int bsp_flash_prog(uint8_t *buff, uint32_t len);
int bsp_flash_read(uint8_t *buff, uint32_t len);
#endif /* __ZB32L03x_STARTERKIT_H */


